disable color shell tests for terminals that don't support color
authorNathan Froyd <froydnj@gmail.com>
Fri, 6 Jan 2017 17:46:56 +0000 (12:46 -0500)
committerNathan Froyd <froydnj@gmail.com>
Fri, 6 Jan 2017 17:55:33 +0000 (12:55 -0500)
commit1621bd0baf25f77a2f6b7765ee79183f2684bf6e
treee9244023615175428c13eacb58a2debc12bf279c
parent508d66bca71ee71d6bae9e4344ed040f142bf2a7
disable color shell tests for terminals that don't support color

Some terminals (e.g. running a shell inside Emacs's shell-mode) don't
support color, and running tests that assume the terminal supports color
don't work so well.  Instead, if color is expected, check the terminal
for whether it supports color or not, and act accordingly.
tests/shell.rs